package com.wyt.controller.instorageController;

import com.wyt.dao.InstOrAgeAndDetailMapper;
import com.wyt.entity.Book;
import com.wyt.entity.InstOrAgeAndDetail;
import com.wyt.until.CommonResult;
import com.wyt.until.TableLayui;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;
import java.util.Map;
// 数据库表名t_instorage_detail
//入库驳回 查看详情表
//
//查看详情  弹出显示所有
@Controller
@RequestMapping("inStorageCheck")
public class InstorageCheckController {
   @Autowired
    private InstOrAgeAndDetailMapper instOrAgeAndDetailMapper;

   //点击查询  查看里面的详情
   @RequestMapping("queryAllDetail")
    @ResponseBody
    public CommonResult queryAllDetail(Integer pid){
       System.out.println(pid);
     /*  System.out.println(pid);*/
       List<InstOrAgeAndDetail> maps = instOrAgeAndDetailMapper.queryAllDetail(pid);
       CommonResult commonResult = new CommonResult(0,"",maps);
       return commonResult;
   }

    @RequestMapping("queryAllDetail1")
    @ResponseBody
    public CommonResult queryAllDetail1(Integer pid){
        System.out.println(pid);
        /*  System.out.println(pid);*/
        List<InstOrAgeAndDetail> maps = instOrAgeAndDetailMapper.queryAllDetail1(pid);
        CommonResult commonResult = new CommonResult(0,"",maps);
        return commonResult;
    }
    
}
